1.在select_city.xml文件中添加新的RelativeLayout,在布局中添加ListView控件。

2.编写initView方法实现城市列表的展示

其中myadpter是添加的适配器

运行结果:

results matching ""

    No results matching ""